package com.ruoyi.system.service.impl;

import java.util.List;
import java.util.Map;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysXsshWorkOrderBiMapper;
import com.ruoyi.system.domain.SysXsshWorkOrderBi;
import com.ruoyi.system.service.ISysXsshWorkOrderBiService;

/**
 * SysXsshWorkOrderBiService业务层处理
 * 
 * @author SYF
 * @date 2025-06-04
 */
@Service
public class SysXsshWorkOrderBiServiceImpl implements ISysXsshWorkOrderBiService 
{
    @Autowired
    private SysXsshWorkOrderBiMapper sysXsshWorkOrderBiMapper;

    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public SysXsshWorkOrderBi selectSysXsshWorkOrderBiById(String id)
    {
        return sysXsshWorkOrderBiMapper.selectSysXsshWorkOrderBiById(id);
    }

    /**
     * 查询SysXsshWorkOrderBi列表
     * 
     * @param sysXsshWorkOrderBi SysXsshWorkOrderBi
     * @return SysXsshWorkOrderBi
     */
    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public List<SysXsshWorkOrderBi> selectSysXsshWorkOrderBiList(SysXsshWorkOrderBi sysXsshWorkOrderBi)
    {
        return sysXsshWorkOrderBiMapper.selectSysXsshWorkOrderBiList(sysXsshWorkOrderBi);
    }

    /**
     * 新增SysXsshWorkOrderBi
     * 
     * @param sysXsshWorkOrderBi SysXsshWorkOrderBi
     * @return 结果
     */
    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public int insertSysXsshWorkOrderBi(SysXsshWorkOrderBi sysXsshWorkOrderBi)
    {
        return sysXsshWorkOrderBiMapper.insertSysXsshWorkOrderBi(sysXsshWorkOrderBi);
    }

    /**
     * 修改SysXsshWorkOrderBi
     * 
     * @param sysXsshWorkOrderBi SysXsshWorkOrderBi
     * @return 结果
     */
    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public int updateSysXsshWorkOrderBi(SysXsshWorkOrderBi sysXsshWorkOrderBi)
    {
        return sysXsshWorkOrderBiMapper.updateSysXsshWorkOrderBi(sysXsshWorkOrderBi);
    }

    /**
     * 批量删除SysXsshWorkOrderBi
     * 
     * @param wkYears 需要删除的SysXsshWorkOrderBi主键
     * @return 结果
     */
    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public int deleteSysXsshWorkOrderBiByWkYears(String[] wkYears)
    {
        return sysXsshWorkOrderBiMapper.deleteSysXsshWorkOrderBiByWkYears(wkYears);
    }

    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public int deleteSysXsshWorkOrderBiById(String id)
    {
        return sysXsshWorkOrderBiMapper.deleteSysXsshWorkOrderBiById(id);
    }

    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public List<Map<String,Object>> selectXsshOrder(){
        return sysXsshWorkOrderBiMapper.selectXsshOrder();
    }

    @Override
    @DataSource(DataSourceType.SLAVEDW)
    public List<Map<String,Object>> selectXsshOrdersInfo(SysXsshWorkOrderBi sysXsshWorkOrderBi){
        return sysXsshWorkOrderBiMapper.selectXsshOrdersInfo(sysXsshWorkOrderBi);
    }
}
